/*************************************************************************
	> File Name: Log.hpp
	> Author: H.M. Lau
	> Mail: hm.lau@outlook.com
	> Created Time: 2023/09/12 14:22
 ************************************************************************/

#ifndef _LOG_H
#define _LOG_H

#include <iostream>
#include <ctime>
#include <string>

#define Debug 0
#define Notice 1
#define Warning 2
#define Error 3

const std::string msg[] = {
    "Debug",
    "Notice",
    "Warning",
    "Error"
};

std::ostream &Log(std::string message, int level)
{
    std::cout << " | " << (unsigned)time(nullptr) << " | " << msg[level] << " | " << std::endl;
    return  std::cout;
}

#endif
